package com.datou.salmon.model;

import java.io.Serializable;

public class Parameter<T>  implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 8785752186645609799L;
	private String key;
	private String path;
	private T value;
	private boolean required;
	private T defaultValue;
	private String unit;
	private int maxSize;
	private int minSize;
	private int maxLength;
	private int minLength;
	private T maxValue;
	private T minValue;
	private String validatorErroePrefix;
	public String getKey() {
		return key;
	}
	public void setKey(String key) {
		this.key = key;
	}
	
	public Object getDefaultValue() {
		return defaultValue;
	}
	public void setDefaultValue(T defaultValue) {
		this.defaultValue = defaultValue;
	}
	public int getMaxSize() {
		return maxSize;
	}
	public void setMaxSize(int maxSize) {
		this.maxSize = maxSize;
	}
	public int getMaxLength() {
		return maxLength;
	}
	public void setMaxLength(int maxLength) {
		this.maxLength = maxLength;
	}
	public T getMaxValue() {
		return maxValue;
	}
	public void setMaxValue(T maxValue) {
		this.maxValue = maxValue;
	}
	public T getMinValue() {
		return minValue;
	}
	public void setMinValue(T minValue) {
		this.minValue = minValue;
	}
	public String getValidatorErroePrefix() {
		return validatorErroePrefix;
	}
	public void setValidatorErroePrefix(String validatorErroePrefix) {
		this.validatorErroePrefix = validatorErroePrefix;
	}
	
	public boolean isRequired() {
		return required;
	}
	public void setRequired(boolean required) {
		this.required = required;
	}
	public T getValue() {
		return value;
	}

	public void setValue(T value) {
		this.value = value;
	}
	public String getUnit() {
		return unit;
	}
	public void setUnit(String unit) {
		this.unit = unit;
	}
	public int getMinSize() {
		return minSize;
	}
	public void setMinSize(int minSize) {
		this.minSize = minSize;
	}
	public int getMinLength() {
		return minLength;
	}
	public void setMinLength(int minLength) {
		this.minLength = minLength;
	}
	
	public String getPath() {
		return path;
	}
	public void setPath(String path) {
		this.path = path;
	}
}